package com.synergy.stockflow.sales.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.synergy.stockflow.entity.SysUser;
import com.synergy.stockflow.product.entity.Material;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "customer_resources")
public class CustomerResources {
    /**
     * 客户编码
     */
    @TableId(value = "customer_resources_id", type = IdType.ASSIGN_ID)
    @Schema(description = "客户编码")
    private String customerResourcesId;

    /**
     * 客户名称
     */
    @TableField(value = "customer_resources_name")
    @Schema(description = "客户名称")
    private String customerResourcesName;

    /**
     * 客户分类（一级、二级、三级）
     */
    @TableField(value = "customer_resources_customer_segmentation")
    @Schema(description = "客户分类（一级、二级、三级）")
    private String customerResourcesCustomerSegmentation;

    /**
     * 客户来源（电话、网络、熟人介绍等）
     */
    @TableField(value = "customer_resources_customer_source")
    @Schema(description = "客户来源（电话、网络、熟人介绍等）")
    private String customerResourcesCustomerSource;

    /**
     * 客户标签（gs、sr）
     */
    @TableField(value = "customer_resources_customer_tags")
    @Schema(description = "客户标签（gs、sr）")
    private String customerResourcesCustomerTags;

    /**
     * 结算期限（月结，季结，现结）
     */
    @TableField(value = "customer_resources_settlement_period")
    @Schema(description = "结算期限（月结，季结，现结）")
    private String customerResourcesSettlementPeriod;

    /**
     * 信用额度/元
     */
    @TableField(value = "customer_resources_credit_limit")
    @Schema(description = "信用额度/元")
    private Double customerResourcesCreditLimit;

    /**
     * 销售负责人
     */
    @TableField(value = "customer_resources_head_of_sales")
    @Schema(description = "销售负责人")
    private String customerResourcesHeadOfSales;

    /**
     * 客户地址
     */
    @TableField(value = "customer_resources_address")
    @Schema(description = "客户地址")
    private String customerResourecsAddress;

    /**
     * 详细地址
     */
    @TableField(value = "customer_resources_fulladdress")
    @Schema(description = "详细地址")
    private String customerResourcesFulladdress;

    /**
     * 联系人
     */
    @TableField(value = "customer_resources_contact")
    @Schema(description = "联系人")
    private String customerResourcesContact;

    /**
     * 联系人电话
     */
    @TableField(value = "customer_resources_contact_phone")
    @Schema(description = "联系人电话")
    private String customerResourcesContactPhone;

    /**
     * 联系人职位
     */
    @TableField(value = "customer_resources_contact_position")
    @Schema(description = "联系人职位")
    private String customerResourcesContactPosition;

    @TableField(exist = false)
    @Schema(description="员工姓名")
    private String nickname;
}